﻿using Furion.EventBus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Furion.CMS.Core.EventSource
{
    /// <summary>
    /// 权限数据项变更
    /// </summary>
    public class OnPermissionDataItemChange : CacheEvent
    {
        public OnPermissionDataItemChange(CacheOperationType operationType, string key)
            : base(EventIdConsts.PermissionDataItemChange)
        {
            OperationType = operationType;
            Key = key;
        }

        public OnPermissionDataItemChange(CacheOperationType operationType, string key, object payload)
            : this(operationType, key)
        {
            Payload = payload;
        }

        /// <summary>
        /// 数据项Key
        /// </summary>
        public string Key { get; }
    }
}
